'Admin Columns' 的搜索结果

'Admin Columns' 的搜索结果


正在查看 3 结果:1-3 (共 3 个结果)
  • 作者
    搜索结果
  • 诗语
    管理员
    • 文章数量: 5,866
    @feibisi

    大部分情况下,我们是建议采用简单的方式来处理这些信息,而不是编辑 wordpress 插件的内部文件,因为编辑文件导致的问题就是下次更新后需要重新再操作一次,除非万不得已,是不要改原主题、插件的代码文件。

    安装 Admin Columns Pro 插件后会有一个许可证提示,而且还没有给去除的按钮,那么还是一样,自己动手。

    To enable automatic updates enter your license key. If you don't have a licence key, please see details & pricing.

    将下面代码,添加到你主题或者子主题的 functions.php 文件里。

    add_action('admin_head', 'stop_admin_columns_pro_notice');
    function stop_admin_columns_pro_notice() {
     echo '<style>
    .ac-notice.notice.notice-info {
        display: none;
    }
     </style>';
    }
    诗语
    管理员
    • 文章数量: 5,866
    @feibisi

    还是分享一下吧,国内的企业站和政府类网站这种排版样式的比较多,给客户定制的一个样式效果,具体显示效果如下

    前台显示效果:

    后台使用模块:

    页面生成器的代码:

    [fusion_builder_container admin_label="" hide_on_mobile="no" hundred_percent="no" hundred_percent_height="no" hundred_percent_height_scroll="no" hundred_percent_height_center_content="yes" equal_height_columns="no" menu_anchor="" class="" id="" background_color="#ffffff" background_image="" background_position="left top" background_repeat="no-repeat" fade="no" background_parallax="none" enable_mobile="no" parallax_speed="0.3" video_mp4="" video_webm="" video_ogv="" video_url="" video_aspect_ratio="16:9" video_loop="yes" video_mute="yes" video_preview_image="" border_size="0px" border_color="" border_style="solid" margin_top="" margin_bottom="" padding_top="30px" padding_right="60px" padding_bottom="40px" padding_left="30px"][fusion_builder_row][fusion_builder_column type="1_4" layout="1_4" link="" target="_self" hide_on_mobile="medium-visibility,large-visibility" spacing="yes" center_content="no" min_height="" class="" id="" background_color="" background_image="" background_position="left top" undefined="" background_repeat="no-repeat" hover_type="none" border_size="0" border_color="" border_style="solid" border_position="all" padding_top="" padding_right="20px" padding_bottom="" padding_left="30px" margin_top="" margin_bottom="" animation_type="" animation_direction="left" animation_speed="0.1" animation_offset="" last="no"][fusion_widget_area name="avada-custom-sidebar-jiaoyu-01" title_size="18px" title_color="" background_color="" padding_top="" padding_right="30px" padding_bottom="" padding_left="0px" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="" /][/fusion_builder_column][fusion_builder_column type="3_4" layout="1_1" link="" target="_self" hide_on_mobile="no" spacing="yes" center_content="no" min_height="" class="" id="" background_color="" background_image="" background_position="left top" undefined="" background_repeat="no-repeat" hover_type="none" border_size="0" border_color="" border_style="solid" border_position="all" padding_top="" padding_right="" padding_bottom="" padding_left="" margin_top="" margin_bottom="" animation_type="" animation_direction="left" animation_speed="0.1" animation_offset="" last="no"][fusion_blog layout="medium" blog_grid_columns="" blog_grid_column_spacing="" blog_masonry_grid_ratio="" blog_masonry_width_double="" equal_heights="no" number_posts="15" offset="0" pull_by="category" cat_slug="xcjy" exclude_cats="" tag_slug="" exclude_tags="" orderby="date" order="DESC" thumbnail="no" title="yes" title_link="yes" excerpt="hide" excerpt_length="10" strip_html="yes" meta_all="yes" meta_author="no" meta_categories="no" meta_comments="no" meta_date="yes" meta_link="no" meta_tags="no" scrolling="pagination" grid_box_color="" grid_element_color="" grid_separator_style_type="" grid_separator_color="" padding_top="" padding_right="" padding_bottom="" padding_left="" hide_on_mobile="small-visibility,medium-visibility,large-visibility" class="" id="" /][/fusion_builder_column][/fusion_builder_row][/fusion_builder_container]

    另外写的 css 样式表:

    <style>
    h2.entry-title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 650px;
    }
    .fusion-blog-shortcode .post {
        background-color: #ffffff;
        margin-bottom: 5px;
    	  border-bottom: 1px dotted #c9c9c9;
    }
    #main .post h2 a {
        font-weight: 400;
      	font-size: 15px;
    }
    #main .post h2 a:before {
        content: "·";
        margin-right: 10px;
        color: #333333;
        font-family: "Font Awesome 5 Free";
        font-weight: 400;
    }
    .fusion-blog-layout-medium .fusion-meta-info, .fusion-blog-layout-medium-alternate .fusion-meta-info {
        width: unset;
    }
    	.fusion-blog-layout-large .entry-title, .fusion-blog-layout-medium .entry-title {
        margin-top: 25px;
        margin-bottom: 0px;
    }
    	.fusion-meta-info {
    		 font-size: 13px;
        border-color: #ffffff!important;
    }
    .fusion-blog-pagination .pagination .current, .fusion-blog-pagination .pagination a.inactive, .fusion-hide-pagination-text .fusion-blog-pagination .pagination .pagination-next, .fusion-hide-pagination-text .fusion-blog-pagination .pagination .pagination-prev {
        padding: 3px 8px;
    }
    .fusion-blog-pagination .pagination {
        float: left!important;
    }
    .fusion-content-widget-area .widget li {
        text-align: center;
    }
    	.fusion-widget-area-1 .widget .heading h4 {
        text-align: center;
    }
    	
    	
    </style>

    小工具设置:

    另外上面的菜单还是需要自己新建一个才行,不然不会显示侧边栏出来。

    诗语
    管理员
    • 文章数量: 5,866
    @feibisi

    WooCommerce v3.3之后 对订单列表做了大幅度的更动,其中有一项是把客户留的订单备注栏位取消了,这会对订单量大的商店在管理上增加困扰,但我们还可利用短代码快速的把它加回来。

    将下列代码加入主题的functions.php存档即可。

    add_filter( 'manage_edit-shop_order_columns', 'custom_shop_order_column', 90 );
    function custom_shop_order_column( $columns )
    {
        $ordered_columns = array();
    
        foreach( $columns as $key => $column ){
            $ordered_columns[$key] = $column;
            if( 'order_date' == $key ){
                $ordered_columns['order_notes'] = __( 'Notes', 'woocommerce');
            }
        }
    
        return $ordered_columns;
    }
    
    add_action( 'manage_shop_order_posts_custom_column' , 'custom_shop_order_list_column_content', 10, 1 );
    function custom_shop_order_list_column_content( $column )
    {
        global $post, $the_order;
    
        $customer_note = $post->post_excerpt;
    
        if ( $column == 'order_notes' ) {
    
            if ( $the_order->get_customer_note() ) {
                echo '<span class="note-on customer tips" data-tip="' . wc_sanitize_tooltip( $the_order->get_customer_note() ) . '">' . __( 'Yes', 'woocommerce' ) . '</span>';
            }
    
            if ( $post->comment_count ) {
    
                $latest_notes = wc_get_order_notes( array(
                    'order_id' => $post->ID,
                    'limit'    => 1,
                    'orderby'  => 'date_created_gmt',
                ) );
    
                $latest_note = current( $latest_notes );
    
                if ( isset( $latest_note->content ) && 1 == $post->comment_count ) {
                    echo '<span class="note-on tips" data-tip="' . wc_sanitize_tooltip( $latest_note->content ) . '">' . __( 'Yes', 'woocommerce' ) . '</span>';
                } elseif ( isset( $latest_note->content ) ) {
                    // translators: %d: notes count
                    echo '<span class="note-on tips" data-tip="' . wc_sanitize_tooltip( $latest_note->content . '<br/><small style="display:block">' . sprintf( _n( 'Plus %d other note', 'Plus %d other notes', ( $post->comment_count - 1 ), 'woocommerce' ), $post->comment_count - 1 ) . '</small>' ) . '">' . __( 'Yes', 'woocommerce' ) . '</span>';
                } else {
                    // translators: %d: notes count
                    echo '<span class="note-on tips" data-tip="' . wc_sanitize_tooltip( sprintf( _n( '%d note', '%d notes', $post->comment_count, 'woocommerce' ), $post->comment_count ) ) . '">' . __( 'Yes', 'woocommerce' ) . '</span>';
                }
            }
        }
    }
    
    // Set Here the WooCommerce icon for your action button
    add_action( 'admin_head', 'add_custom_order_status_actions_button_css' );
    function add_custom_order_status_actions_button_css() {
        echo '<style>
        td.order_notes > .note-on { display: inline-block !important;}
        span.note-on.customer { margin-right: 4px !important;}
        span.note-on.customer::after { font-family: woocommerce !important; content: "\e026" !important;}
        </style>';
    }
正在查看 3 结果:1-3 (共 3 个结果)

未找到对应子版块?请直接在 [疑难杂症] 版块中发帖提问。

收藏纪念品


有奖活动

参与论坛社区问答,有机会获赠文派瓦普(Wapuu.com)手办模型。